package com.tuanzi.loan.vo.view.family;

import java.util.List;

import javax.validation.constraints.NotNull;

import lombok.Data;

/**
 * @author Ray 2017/10/16
 */
@Data
public class ProductMatchRuleView {

	private Long id;

	@NotNull
	private Integer recommendPosition;

	@NotNull
	private Integer advertPosition;

	private ProductMatchRuleItem item;

	private ProductMatchRulePriority priority;

	private ProductMatchRuleConfig config;

	@Data
	public static final class ProductMatchRuleItem {

		@NotNull
		private Boolean identityTag;

		@NotNull
		private Boolean minAge;

		@NotNull
		private Boolean maxAge;

		@NotNull
		private Boolean sesamePoint;

		@NotNull
		private Boolean hasCreditCard;

		@NotNull
		private Boolean phoneOnlineTime;

		@NotNull
		private Boolean areaLimit;

		@NotNull
		private Boolean apiDeliveryLimit;

	}

	@Data
	public static final class ProductMatchRulePriority {

		private Integer amount;

		private Integer onlineTime;

		private Integer necessaryData;

		private Integer approvalRate;
	}

	@Data
	public static final class ProductMatchRuleConfig {

		private List<Integer> infoFlowChannels;

		private List<Integer> industryChannels;

		private List<Integer> applicationDistributionChannels;

		private List<Integer> smsChannels;

		private List<Integer> otherChannels;

		private List<String> products;
	}

}
